<nav class="top-bar" data-topbar> 
  <ul class="title-area"> 
    <li class="name"> 
      <h1><a href="/app">Food Storage</a></h1> 
    </li> 
    <li class="toggle-topbar menu-icon">
      <a href="#">Menu</a>
    </li> 
  </ul> 
  <section class="top-bar-section"> 
    <ul class="right"> 
      <li>
       <a href='#'>{{ Auth::user()->email }} </a>
      </li> 
      <li>
        <a href="/logout">logout</a>
      </li> 
    </ul> 

    <ul class="left"> 
      <li>
        <a href="/app">home</a>
      </li> 
      <li>
        <a href="/lots">my inventory</a>
      </li> 
      <li>
        <a href="/item_types">types</a>
      </li> 
      <li>
        <a href="/item_categories">categories</a>
      </li> 
      <li>
        <a href="/containers">containers</a>
      </li> 
    </ul> 
  </section> 
</nav>
<br />

<div class='row'>
<h2>{{ $title }}</h2>
</div>

<!-- if there are creation errors, they will show here -->
<?php
$error_msgs = $errors->getMessages();
if ($error_msgs && sizeof ($error_msgs)) {
    echo "<div class='row'>\n";
    foreach ($error_msgs as $field=>$msgs) {
        foreach ($msgs as $msg) {
echo "
<div data-alert class='alert-box warning radius'>
  {$msg}
  <a href='#' class='close'>&times;</a>
</div>
  ";
        }
    }
    echo "</div>";
}
?>


